package vendingmachine;

/*
 * File : FileExp.java
 * Deskripsi : Definisi dan impelementasi kelas FileExp
 * Dibuat Oleh : Muhammad Ghufron Mahfudhi (23512066) dan Jonathan Ery Pradana (23512032)
 * Hari/Tanggal : Senin, 28 November 2012
 */

public class FileExp extends Exception{
    public static final String CANNOT_OPEN = "Gagal membuka file.";
    public static final String ERROR_FORMAT = "Format nama file salah.";
    private static int num_except;

    public FileExp(String msg){
            super(msg);
            num_except++;
    }

    public static int numException(){
            return num_except;
    }

    public void response(){
            System.err.println(getMessage());
    }
}
